import service from '@/utils/request'

// @Tags ProductSpecTest
// @Summary 创建产品规格-测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecTest true "创建产品规格-测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productSpecTest/createProductSpecTest [post]
export const createProductSpecTest = (data) => {
  return service({
    url: '/productSpecTest/createProductSpecTest',
    method: 'post',
    data
  })
}

// @Tags ProductSpecTest
// @Summary 删除产品规格-测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecTest true "删除产品规格-测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecTest/deleteProductSpecTest [delete]
export const deleteProductSpecTest = (params) => {
  return service({
    url: '/productSpecTest/deleteProductSpecTest',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecTest
// @Summary 批量删除产品规格-测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除产品规格-测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecTest/deleteProductSpecTest [delete]
export const deleteProductSpecTestByIds = (params) => {
  return service({
    url: '/productSpecTest/deleteProductSpecTestByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecTest
// @Summary 更新产品规格-测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecTest true "更新产品规格-测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productSpecTest/updateProductSpecTest [put]
export const updateProductSpecTest = (data) => {
  return service({
    url: '/productSpecTest/updateProductSpecTest',
    method: 'put',
    data
  })
}

// @Tags ProductSpecTest
// @Summary 用id查询产品规格-测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductSpecTest true "用id查询产品规格-测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productSpecTest/findProductSpecTest [get]
export const findProductSpecTest = (params) => {
  return service({
    url: '/productSpecTest/findProductSpecTest',
    method: 'get',
    params
  })
}

// @Tags ProductSpecTest
// @Summary 分页获取产品规格-测试标准列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取产品规格-测试标准列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productSpecTest/getProductSpecTestList [get]
export const getProductSpecTestList = (params) => {
  return service({
    url: '/productSpecTest/getProductSpecTestList',
    method: 'get',
    params
  })
}
